package com.ostrich.lib_common.base;

import android.os.Bundle;

import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.ViewModel;

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/6 08:41
 * @Description : BaseMvvmActivity
 */
public abstract class BaseMvvmActivity <VM extends ViewModel,VDB extends ViewDataBinding> extends BaseActivity<VDB>{
    protected VM viewModel;
    public abstract void createViewModel();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        createViewModel();
        super.onCreate(savedInstanceState);
    }
}
